package com.lokyiu.tutorial.java.exerisce3;

import java.util.ArrayList;
import java.util.List;

public class VehicleGenarator {
	private List<Vehicle> vehicles;
	
	public VehicleGenarator(Vehicle vehicle,int numberOfVehicles){
		List<Vehicle> vehicles = new ArrayList<Vehicle>();
		for(int i=0;i<=numberOfVehicles;i++){
			vehicles.add(new Car("Benz"));
		}
		this.vehicles=vehicles;
	}

	public List<Vehicle> getVehicles() {
		return vehicles;
	}

}
